import Init from '@/core/init'
import nspList from '@/config/WebSocketNamespace'

// 给所有的客户端发送消息
export function emitAll({ key, value }: any) {
  nspList.forEach((nsp) => {
    Init.io.of(nsp).emit(key, value)
  })
}
